<template>
    <div></div>
</template>

<script>
import store from '../../store'
export default {
  name: 'authlogin',
  store: store,
  mounted () {
    let that = this
    let msg = this.$route.params
    console.log(msg)
    this.$store.dispatch('loginIn', msg)
    if (!localStorage.getItem('url')) {
      that.$router.push('/users/index')
    } else {
      that.$router.push(localStorage.getItem('url'))
    }
    localStorage.removeItem('url')
  }
}
</script>

<style lang="scss" scoped>
</style>
